//
//  XNLoginOutRequest.m
//  XINNingOA
//
//  Created by samuel on 2021/7/20.
//

#import "XNLoginOutRequest.h"

@implementation XNLoginOutRequest

- (NSString *)requestUrl
{
    return @"/api/User/Logout";
}

- (YTKRequestMethod)requestMethod
{
    return YTKRequestMethodGET;
}

- (id)requestArgument
{
    return @{
        @"account":[[NSUserDefaults standardUserDefaults] objectForKey:@"account"],
    };
}

- (BOOL)success
{
    NSDictionary *response = [self responseJSONObject];
    if ([response[@"isSucceed"] boolValue]) {
        return true;
    }else{
        return false;
    }
}

@end
